import { zhCn } from './zh-cn'
import { enUs } from './en-us'

export const langs: any = {
  'zh-cn': zhCn,
  'en-us': enUs
}

// 快速获取对应值的函数
export const getLangTxt = (lang: 'zh-cn' | 'en-us' = 'zh-cn') => {
  return (page: string, key: string) => {
    return langs[lang][page][key] ? langs[lang][page][key] : '查询错误'
  }
}

// 输出json 数据
console.log(JSON.stringify(langs))
